import Vue from 'vue'
import Router from 'vue-router'

import AppLayout from '@/components/admin/AppLayout.vue'
import AuthLayout from  '@/components/auth/AuthLayout.vue'
import lazyLoading from './lazyLoading'

Vue.use(Router)


export default new Router({
  routes: [
    { path : '/page',
      component : AppLayout,
      children : [
        {
          path : 'user',
          component : lazyLoading('error/e500')
        },
        {
          path : 'page',
          component : lazyLoading('error/e500')
        }
      ]
    },
    { path : '/',
      component : AuthLayout,
    }
  ]
})
